<?php
class Afip_incoterm extends Modelo_base {

	var $table = 'afip_incoterm';

    // Validaciones de campos
    var $validation = array(
        'codigo' => array(
            'label' => 'Código AFIP',
            'rules' => array('required', 'trim', 'max_length' => 3, 'unique')
            ),
        'descripcion' => array(
            'label' => 'Descripción',
            'rules' => array('required', 'trim', 'max_length' => 50, 'unique')
            ),
        'editable' => array(
            'label' => 'Editable',
            'rules' => array('boolean')
            ),
        'activo' => array(
            'label' => 'Activo',
            'rules' => array('boolean')
            )
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }
}

/* End of file afip_incoterm.php */
/* Location: ./application/models/afip_incoterm.php */